<?php
class AboutUsWidget extends CWidget
{
    public function run()
    {        
    	$category = PostCategory::model()->with('posts')->findByAttributes(array('title'	=>	'aboutus'));
    	$posts = $category->posts;
    	$data['posts'] = $posts;

        $this->render('aboutus', $data);
    }
}